package cn.chenhongchao.zhaobiaopingtai.controller;

import cn.chenhongchao.zhaobiaopingtai.common.api.CommonResult;
import cn.chenhongchao.zhaobiaopingtai.entity.Tender;
import cn.chenhongchao.zhaobiaopingtai.service.impl.ReturnBidServiceImpl;
import cn.chenhongchao.zhaobiaopingtai.service.impl.TenderServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/tenderReport")
public class TenderReportController {

    @Autowired
    private ReturnBidServiceImpl returnBidService;


    @Autowired
    private TenderServiceImpl tenderService;

    @RequestMapping(value = "/getScheduleMax",method = RequestMethod.POST)
    public CommonResult getScheduleMax(@RequestParam(value = "tenderFileCode",required = false) Integer tenderFileCode,
                                       @RequestParam(value = "openTenderType",required = false) Integer openTenderType) {
        //returnBidService.getScheduleMax(code);
       // tenderService.getScheduleMax()
//        System.out.println("===========in getScheduleMax===========");
        tenderService.getScheduleMax(tenderFileCode,openTenderType);
        return CommonResult.success();
    }


}
